<div style="width: 800px; margin: 0 auto; padding: 0;">
    <h2 style="text-align: center; color: #333; text-align: center;color: #333;margin: 0;padding: 0;">专家支撑周报</h2>
    <div style="text-align: center; margin-bottom: 10px; color: #666;">
        <p>统计周期：<?php echo $start_date; ?> 至 <?php echo $end_date; ?></p>
    </div>

    <div style="margin-bottom: 10px; padding: 15px; border: 1px solid #ddd; border-radius: 5px;">
        <table style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">
            <tr>
                <td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9; width: 14%;"><strong>总任务数</strong></td>
                <td style="padding: 8px; border: 1px solid #ddd; text-align: center;"><?php echo $total_tasks; ?></td>
                <td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;width: 14%;"><strong>已完成</strong></td>
                <td style="padding: 8px; border: 1px solid #ddd; text-align: center;"><?php echo $completed_tasks; ?></td>
                <td style="padding: 8px; border: 1px solid #ddd; background-color: #f9f9f9;width: 14%;"><strong>待处理</strong></td>
                <td style="padding: 8px; border: 1px solid #ddd; text-align: center;"><?php echo $pending_tasks; ?></td>
            </tr>
        </table>

        <h3 style="color: #333; margin: 15px 0 5px;">任务类型分布</h3>
        <table style="width: 100%; border-collapse: collapse;">
            <tr>
                <th style="padding: 8px; border: 1px solid #ddd; background-color: #f0f0f0;">类型</th>
                <th style="padding: 8px; border: 1px solid #ddd; background-color: #f0f0f0;">数量</th>
            </tr>
            <?php foreach($newOptions as $opitem):?>
            <tr>
                <td style="padding: 8px; border: 1px solid #ddd;"><?php echo $opitem['name'];?></td>
                <td style="padding: 8px; border: 1px solid #ddd; text-align: center;"><?php echo $opitem['count'];?></td>
            </tr>
            <?php endforeach;?>
        </table>
    </div>
</div>